﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using NasuTek.Shion.Extencibility;

namespace Shion.OperPlugin
{
    public partial class Stats : Form
    {
        ExtencibilityManager em;

        public Stats(ExtencibilityManager e)
        {
            em = e;
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                em.Clients[em.activeServer].WriteLine(comboBox1.Text.Split(':')[1].Remove(0, 1));
                this.Close();
            }
            catch (IndexOutOfRangeException) { }
        }

        private void button2_Click(object sender, EventArgs e)
        {

        }

        private void Stats_Load(object sender, EventArgs e)
        {

        }

        private void Stats_FormClosing(object sender, FormClosingEventArgs e)
        {
        }
    }
}
